package com.example.bilifo.charts_test;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;

import com.github.mikephil.charting.charts.LineChart;
import com.github.mikephil.charting.data.LineData;

public class MainActivity extends AppCompatActivity {

    private EditText ed_p,ed_i,ed_d;
    private Button bt;
    LineChart chart;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        init();


    }

    private void init() {
    ed_p=(EditText)findViewById(R.id.main_ed_P);
        ed_d= (EditText) findViewById(R.id.main_ed_D);
        ed_i= (EditText) findViewById(R.id.main_ed_I);
        bt= (Button) findViewById(R.id.main_bt_begin);
        chart= (LineChart) findViewById(R.id.main_LineChart);
//        // 制作7个数据点（沿x坐标轴）
//        LineData mLineData = makeLineData(100);

    }


}
